<?php

Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'slider', 'namespace' => 'Modules\Slider\Http\Controllers'], function()
{
    Route::get('/', 'SliderController@index');
});

 
//slider-route
Route::group(['middleware' => ['web','auth:admin'],'prefix'=>'slider','namespace'=>"Modules\Slider\Http\\Controllers"],
function () {
    Route::resource('slider', 'SliderController')->middleware ('permission:admin');
});